package com.cinc.ebc.mm.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 采购订单
 * @Author: jeecg-boot
 * @Date:   2022-03-20
 * @Version: V1.0
 */
@Data
@ApiModel(value="mm_purchase_orderPage对象", description="采购订单")
public class MmPurchaseOrderModel {

	/**主键ID*/
	@ApiModelProperty(value = "主键ID")
    private String id;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
	@ApiModelProperty(value = "单据编号")
    private String orderNo;
	/**订单类型*/
	@Excel(name = "订单类型", width = 15, dicCode = "mm_purchase_type")
    @Dict(dicCode = "mm_purchase_type")
	@ApiModelProperty(value = "订单类型")
    private String orderType;
	/**供应商*/
	@Excel(name = "供应商", width = 15, dictTable = "mdm_supply", dicText = "supply_full_name", dicCode = "id")
	@Dict(dictTable = "mdm_supply", dicText = "supply_full_name", dicCode = "id")
	@ApiModelProperty(value = "供应商")
    private String supplyId;
	/**订单日期*/
	@Excel(name = "订单日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "订单日期")
    private Date orderDate;
	/**含税总额*/
	@Excel(name = "含税总额", width = 15)
	@ApiModelProperty(value = "含税总额")
    private java.math.BigDecimal totalPrice;
	/**实际总额*/
	@Excel(name = "实际总额", width = 15)
	@ApiModelProperty(value = "实际总额")
	private java.math.BigDecimal totalActPrice;
	/**优惠金额*/
	@Excel(name = "优惠金额", width = 15)
	@ApiModelProperty(value = "优惠金额")
	private java.math.BigDecimal reducePrice;
	/**优惠率%*/
	@Excel(name = "优惠率%", width = 15)
	@ApiModelProperty(value = "优惠率%")
	private java.math.BigDecimal reduceRate;
	/**明细实际金额*/
	@Excel(name = "明细实际金额", width = 15)
	@ApiModelProperty(value = "明细实际金额")
	private java.math.BigDecimal detailActPrice;
	/**明细折扣额*/
	@Excel(name = "明细折扣额", width = 15)
	@ApiModelProperty(value = "明细折扣额")
	private java.math.BigDecimal detailDiscountPrice;
	/**采购员*/
	@Excel(name = "采购员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "采购员")
    private String buyer;
	/**采购部门*/
	@Excel(name = "采购部门",width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
	@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
	@ApiModelProperty(value = "采购部门")
	private String buyerDept;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "mm_purchase_status")
    @Dict(dicCode = "mm_purchase_status")
	@ApiModelProperty(value = "状态")
    private String status;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
    private String remark;
	/**审核*/
	@Excel(name = "审核", width = 15)
	@ApiModelProperty(value = "审核")
    private String auditFlag;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
	@ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
	@ApiModelProperty(value = "租户ID")
    private Integer tenantId;
	/**项目*/
	@Excel(name = "项目", width = 15, dictTable = "quote_project", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "quote_project", dicText = "project_name", dicCode = "id")
	@ApiModelProperty(value = "项目")
	private String projectId;

}
